package com.jiajia.server.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * MyBatisPius分页配置
 * @author ZSJia
 * @date 2021/8/15 015 - 12:43
 */
@Configuration
public class MyBatisPiusConfig {

    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }

}
